package cn.felord.yaml.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import static cn.felord.yaml.properties.FelordProperties.PREFIX;


/**
 * The type Felord properties.
 *
 * @author felord.cn
 */
@Data
@ConfigurationProperties(PREFIX)
public class FelordProperties {
    /**
     * The Prefix.
     */
    static final String PREFIX = "felord";
    private Def def;
    private Dev dev;
    private Type type;

    /**
     * The type Default.
     */
    @Data
    public static class Def {
        private String name;
        private String blog;
        private String weChat;
    }


    /**
     * The type Dev.
     */
    @Data
    public static class Dev {
        private String name;
        private String blog;
        private String weChat;
    }

    /**
     * The enum Type.
     */
    public enum Type {
        /**
         * Juejin type.
         */
        JUEJIN,
        /**
         * Sf type.
         */
        SF,
        /**
         * Osc type.
         */
        OSC,
        /**
         * Csdn type.
         */
        CSDN
    }
}
